<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />

    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../../css/view/global.css" rel="stylesheet">
    <link href="../../css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="../../css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
    <!--<link href="../../css/view/template.css" rel="stylesheet">-->
    <link rel="stylesheet" href="../../css/view/community/community-service.css">
    <link rel="stylesheet" href="../../css/view/community/community-center.css">
    <link rel="stylesheet" href="../../css/view/communityHealth.css">
</head>

<body class="white-bg">
<div class="container-box">
    <div class="page-title">
        <div class="blue-bg-circle themeBgColor"></div>
        <div class="title">社员中心</div>
    </div>

    <div class="banner-manager">
        <div class="second-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">Banner轮播图管理</div>
        </div>
        <div class="banner-box" id="banner-box">
           轮播图显示区域
        </div>
    </div>

    <!--选项卡切换-->
    <div id="nav-box">
        <ul id="nav-list">
            <li class="nav-item active">物业管理</li>
            <li class="nav-item " style="margin-left: 35px;">社区公益</li>
            <li class="nav-item " style="margin-left: 35px;">社区活动</li>
            <li class="nav-item " style="margin-left: 35px;">社区活动展示</li>
        </ul>
    </div>

    <!--物业管理-->
    <div class="item-box">
        <div class="item-business-box">
            <div class="third-title">
                <div class="border-left themeBgColor"></div>
                <div class="text">添加公告</div>
            </div>
            <div class="add-business themeColor" data-toggle="modal" data-target="#NoticeModal" data-type="1">
                添加公告
            </div>
            <div class="line"></div>
            <div class="business-list">
                <div class="border-left themeBgColor"></div>
                <div class="four-title">公告列表</div>
            </div>
            <div class="table-box">
                <table class="table table-striped">
                    <thead class="themeBgColor">
                        <tr>
                            <th>名称</th>
                            <th>发表时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="noticeList">

                    </tbody>
                </table>
                <div id="page" class="page_div"></div>
            </div>
        </div>
    </div>

    <!--社区公益-->
    <div class="item-box" style="display: none;">
        <div class="item-banner-box">
            <div class="third-title">
                <div class="border-left themeBgColor"></div>
                <div class="text">轮播图管理</div>
            </div>
            <div class="banner-box" id="banner-item-box">
                <!--轮播图显示区域-->
            </div>
        </div>
        <div class="third-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">添加公益</div>
        </div>
        
        <div class="add-business themeColor" data-toggle="modal" data-target="#PublicWelfareModal" data-type="1">
            添加公益活动
        </div>

        <div class="business-list">
            <div class="border-left themeBgColor"></div>
            <div class="four-title">公益列表</div>
        </div>
        <div class="table-box">
            <table class="table table-striped">
                <thead class="themeBgColor">
                    <tr>
                        <th>标题</th>
                        <th>地址</th>
                        <th>报名时间</th>
                        <th>截止时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="publicWelfareList">

                </tbody>
            </table>
            <div id="page2" class="page_div"></div>
        </div>
        <div id="publicWelfareSignUpTable" style="display: none">
            <div class="business-list">
                <div class="border-left themeBgColor"></div>
                <div class="four-title">报名列表</div>
            </div>
            <div class="table-box">
                <table class="table table-striped">
                    <thead class="themeBgColor">
                        <tr>
                            <th>标题</th>
                            <th>姓名</th>
                            <th>电话</th>
                        </tr>
                    </thead>
                    <tbody id="publicWelfareSignUpList">
    
                    </tbody>
                </table>
                <div id="page3" class="page_div"></div>
            </div>
        </div>
        
    </div>

    <!--社区活动-->
    <div class="item-box" style="display: none;">
        <div class="third-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">添加活动</div>
        </div>
        
        <div class="add-business themeColor" data-toggle="modal" data-target="#ActivityModal" data-type="1">
            添加活动
        </div>

        <div class="business-list">
            <div class="border-left themeBgColor"></div>
            <div class="four-title">活动列表</div>
        </div>
        <div class="table-box">
            <table class="table table-striped">
                <thead class="themeBgColor">
                    <tr>
                        <th>标题</th>
                        <th>地址</th>
                        <th>报名时间</th>
                        <th>截止时间</th>
                        <th>价格（元）</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="activityList">

                </tbody>
            </table>
            <div id="page4" class="page_div"></div>
        </div>
        <div id="activitySignUpTable" style="display: none">
            <div class="business-list">
                <div class="border-left themeBgColor"></div>
                <div class="four-title">报名列表</div>
            </div>
            <div class="table-box">
                <table class="table table-striped">
                    <thead class="themeBgColor">
                        <tr>
                            <th>标题</th>
                            <th>姓名</th>
                            <th>电话</th>
                        </tr>
                    </thead>
                    <tbody id="activitySignUpList">
    
                    </tbody>
                </table>
                <div id="page5" class="page_div"></div>
            </div>
        </div>
    </div>

    <!--社区活动展示-->
    <div class="item-box" style="display: none;">
        <div class="third-title">
            <div class="border-left themeBgColor"></div>
            <div class="text">社区活动管理</div>
        </div>
        <div class="add-business themeColor" data-toggle="modal" data-target="#ManagementModal" data-type="1">
            添加活动展示
        </div>
        <div class="line"></div>
        <div class="business-list">
            <div class="border-left themeBgColor"></div>
            <div class="four-title">活动列表</div>
        </div>
        <div class="table-box">
            <table class="table table-striped">
                <thead class="themeBgColor">
                    <tr>
                        <th>头像</th>
                        <th>姓名</th>
                        <th>内容</th>
                        <th>图片</th>
                        <th>发布时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="activityNewList">

                </tbody>
            </table>
            <div id="page6" class="page_div"></div>
        </div>
        
    </div>
</div>





<!-- Modal Add mainBanner -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加</h4>
            </div>
            <div class="modal-body">
                <div class="add-banner-btn">
                    <input type="file" accept="image/*" class="file-input" id="fileInput">
                    <input type="hidden" id="imgUrl">
                    <input type="hidden" id="bannerId">
                    <div class="select-img themeBgColor">选择图片</div>
                </div>
                <div class="themeColor">(建议图片尺寸为：690px * 260px)</div>
                <div class="preview-img" id="fileImage">
                    <div>图片预览</div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="uploadBannerImg" data-type="">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Add publicWelfareBannerModal-->
<div class="modal fade" id="publicWelfareBannerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="publicWelfareTxt">添加</h4>
            </div>
            <div class="modal-body">
                <div class="add-banner-btn">
                    <input type="file" accept="image/*" class="file-input" id="publicWelfareInput">
                    <input type="hidden" id="publicWelfareImgUrl">
                    <input type="hidden" id="publicWelfareBannerId">
                    <div class="select-img themeBgColor">选择图片</div>
                </div>
                <div class="themeColor">(建议图片尺寸为：690px * 260px)</div>
                <div class="preview-img" id="publicWelfareImage">
                    <div>图片预览</div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="uploadPublicWelfareBannerImgBtn" data-type="">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Add NoticeModal-->
<div class="modal fade" id="NoticeModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="noticeTxt">添加内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">标题</label>
                    <input type="hidden" id="upType">
                    <input type="hidden" id="noticeId">
                    <input type="text" class="form-control"  placeholder="请输入标题" id="title">
                </div>
                <div id="summernote">
                    
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="noticeBtn" >提交</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Add PublicWelfareModal-->
<div class="modal fade" id="PublicWelfareModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="publicWelfareTxt">添加内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">标题</label>
                    <input type="hidden" id="publicWelfareUpType">
                    <input type="hidden" id="publicWelfareId">
                    <input type="text" class="form-control"  placeholder="请输入标题" id="publicWelfaretitle">
                </div>
                <div class="add-banner-btn" style="margin-top: 20px">
                    <input type="file" accept="image/*" class="file-input" id="publicWelfare-img-select">
                    <input type="hidden" id="publicWelfare-img-url">
                    <div class="select-img themeBgColor">选择公益活动图片</div>
                </div>
                <div class="themeColor">(建议图片尺寸为：750px * 450px)</div>
                <div class="preview-class-img" id="publicWelfare-img-show">
                    <div>图片预览</div>
                </div>
                <div class="form-group">
                    <label for="className">报名地址：</label>
                    <input type="text" class="form-control"  placeholder="请输入报名地址" id="publicWelfareAddress">
                    <input type="hidden" id="publicWelfare-address-lat">
                    <input type="hidden" id="publicWelfare-address-lng">
                </div>
                <div class="address-list" id="publicWelfareAddress-List">

                </div>
                <div class="form-group">
                    <label for="className">公益介绍：</label>
                    <textarea  class="form-control textarea-style"  placeholder="请输入公益介绍" id="publicWelfareDesc"></textarea>
                </div>
                <div class="timeAre">
                    <div class="form-group">
                        <label for="className">开始时间</label>
                        <input placeholder="开始日期" class="form-control layer-date" id="publicWelfareStart">
                    </div>
                    <div class="form-group" style="margin-left: 30px">
                        <label for="className">截止时间</label>
                        <input placeholder="结束日期" class="form-control layer-date" id="publicWelfareEnd">
                    </div>  
                </div>
                <!-- <div class="form-group">
                    <label for="className">价格（单位：元）</label>
                    <input type="text" class="form-control"  placeholder="请输入价格" id="publicWelfarePrice">
                </div> -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="publicWelfareBtn" >提交</button>
            </div>
        </div>
    </div>
</div>

<!-- Modal Add ActivityModal-->
<div class="modal fade" id="ActivityModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="activityTxt">添加内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">标题</label>
                    <input type="hidden" id="activityUpType">
                    <input type="hidden" id="activityId">
                    <input type="text" class="form-control"  placeholder="请输入标题" id="activitytitle">
                </div>
                <div class="add-banner-btn" style="margin-top: 20px">
                    <input type="file" accept="image/*" class="file-input" id="activity-img-select">
                    <input type="hidden" id="activity-img-url">
                    <div class="select-img themeBgColor">选择活动图片</div>
                </div>
                <div class="themeColor">(建议图片尺寸为：750px * 450px)</div>
                <div class="preview-class-img" id="activity-img-show">
                    <div>图片预览</div>
                </div>
                <div class="form-group">
                    <label for="className">报名地址：</label>
                    <input type="text" class="form-control"  placeholder="请输入报名地址" id="activityAddress">
                    <input type="hidden" id="activity-address-lat">
                    <input type="hidden" id="activity-address-lng">
                </div>
                <div class="address-list" id="activityAddress-List">

                </div>
                <div class="form-group">
                    <label for="className">活动介绍：</label>
                    <textarea  class="form-control textarea-style"  placeholder="请输入活动介绍" id="activityDesc"></textarea>
                </div>
                <div class="timeAre">
                    <div class="form-group">
                        <label for="className">开始时间</label>
                        <input placeholder="开始日期" class="form-control layer-date" id="activityStart">
                    </div>
                    <div class="form-group" style="margin-left: 30px">
                        <label for="className">截止时间</label>
                        <input placeholder="结束日期" class="form-control layer-date" id="activityEnd">
                    </div>  
                </div>
                <div class="form-group">
                    <label for="className">价格（元）</label>
                    <input type="text" class="form-control"  placeholder="请输入价格" id="activityPrice">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="activityBtn" >提交</button>
            </div>
        </div>
    </div>
</div>


<!-- Modal Add ActivityModal-->
<div class="modal fade" id="activityNewModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="activityTxt">查看内容</h4>
            </div>
            <div class="modal-body" style="height:500px;overflow-y:scroll;">
                <div id="activityNewTxtAre"></div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn themeBgColor" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>


<!-- Modal Add ManagementPersonnelModal-->
<div class="modal fade" id="ManagementModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="managementLabel">添加活动展示</h4>
            </div>
            <div class="modal-body" style="overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">活动内容：</label>
                    <textarea  class="form-control textarea-style"  placeholder="请输入活动内容" id="activityContent"></textarea>
                </div>
                <div class="add-banner-btn" style="margin-top: 20px">
                    <input type="file" accept="image/*" class="file-input" multiple="multiple" id="content-img-select">
                    <input type="hidden" id="activityUpType2">
                    <input type="hidden" id="activityId2">
                    <div class="select-img themeBgColor">选择商品展示图集</div>
                    <div class="btn themeBgColor" id="upload-content-img">
                        图片上传
                    </div>
                </div>
                <div class="themeColor">(建议图片尺寸为：210px * 200px)</div>
                <div class="preview-content-img" id="content-img-show">
                    <div class="old"></div>
                    <div class="new"></div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="addManagement" data-type="">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="../../js/jquery.min.js?v=2.1.4"></script>
<script src="../../js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="../../js/plugins/layer/laydate/laydate.js"></script>

<!--paging-->
<script src="../../js/my-js/paging.js"></script>
<!-- SUMMERNOTE -->
<script src="../../js/plugins/summernote/summernote.min.js"></script>
<script src="../../js/plugins/summernote/summernote-zh-CN.js"></script>

<!-- 自定义js -->
<script src="../../js/my-js/global.js"></script>
<script src="../../js/view/community/community-center.js"></script>
</body>

</html>
